"""web URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url
from . Views import userviews,gclassviews

urlpatterns = [
    # 首页
    url(r'^index/', userviews.index,name='index'),
    # 用户
    url(r'^user/add/', userviews.user_add,name='user_add'),
    url(r'^user/insert/', userviews.user_insert,name='user_insert'),
    url(r'^user/list/', userviews.user_list,name='user_list'),
    url(r'^user/edit', userviews.user_edit,name='user_edit'),
    url(r'^edit/static', userviews.edit_static,name='edit_static'),
    # 商品分类
    url(r'^gclass/add/', gclassviews.gclass_add,name='gclass_add'),
    url(r'^gclass/insert/', gclassviews.gclass_insert,name='gclass_insert'),
    url(r'^gclass/list/', gclassviews.gclass_list,name='gclass_list'),
    url(r'^gclass/del/', gclassviews.gclass_del,name='gclass_del'),
    url(r'^gclass/edit/', gclassviews.gclass_edit,name='gclass_edit'),

]
